package io.polly.ldz.webflux.exception;


import org.springframework.web.bind.annotation.*;

/**
 * @author ldz11
 * @description：
 * @date 2025/3/12 11:13
 */
//@ResponseBody
//@ControllerAdvice
@RestControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler(ArithmeticException.class)
    public String error(ArithmeticException ex) {
        return ex.getMessage();
    }
}
